package org.software.controller;
import org.software.service.ClassService;
import org.software.entity.Class;

import java.util.List;

public class ClassController {private ClassService classService = new ClassService();

    public boolean classAdd(String className) {
        return classService.classAdd(className);
    }

    public boolean classDelete(String className) {
        return classService.classDelete(className);
    }

    public boolean classUpdate(String className, String newClassName) {
        return classService.classUpdate(className, newClassName);
}
    public List<Class> classQuery(){
        return classService.classQuery();
    }
    public List<Class> classQueryByName(String className){return classService.classQueryByName(className);}
}
